package observers;

import java.io.File;
import java.util.Map; 
import java.io.IOException; 
import java.io.FileNotFoundException; 

public class ObserverA implements Observer {
	
	private File UserActionLog = new File("/Users/MickKellogg/Documents/tictactoehighscores/UserActionLog.rtf"); 
	
	public void processEvent(Event e) throws IOException, FileNotFoundException{
		/*System.out.println("ObserverA" + e.getMessage());
		if()
		
		
		try {
			if(UserActionLog == null){
			throw new FileNotFoundException("File not found!" + log.getContents(UserActionLog)); 
			}
		} finally {
			StringBuilder stringBuilder = new StringBuilder(); 
			String fileString = "" + log.getContents(UserActionLog); 
			fileString = fileString + stringBuilder.append(e.getMessage()); 
			log.setContents(UserActionLog, fileString);
		}*/
	}
	
}
